﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using Orchard.ContentManagement;
using Orchard.ContentManagement.Records;
using Orchard.ContentManagement.Utilities;

namespace Wng.Deployment.Models
{
    public class DeploymentUserPartRecord : ContentPartRecord {
        public virtual string PrivateApiKey { get; set; }
    }

    public class DeploymentUserPart : ContentPart<DeploymentUserPartRecord> {
        private readonly ComputedField<string> _privateApiKey = new ComputedField<string>();

        public ComputedField<string> PrivateApiKeyField {
            get { return _privateApiKey; }
        }

        public string PrivateApiKey {
            get { return _privateApiKey.Value; }
            set { _privateApiKey.Value = value; }
        }
    }
}